<?php 
/***
 * Definition tranffer pram
* @author DuongNV
* @copyright Tan MA JSC
* @category definition constant
* @version 1.1
*/

/** =================================== DEFINITION PARAM ========================================= */
// definition request param
define("PARAM_ID", "id");
define("PARAM_FID", "fid");
define("PARAM_CID", "cid");
define("PARAM_AID", "aid");
define("PARAM_TYPE", "type");
define("PARAM_LAN", "lan");
define("PARAM_SELECTED", "selected");
define("PARAM_LIST", "list");

define("PARAM_FCATE", "fcate");
define("PARAM_CATE", "cate");
define("PARAM_URL", "url");

define("PARAM_PAGE", "page");
define("PARAM_COLOR", "color");
define("PARAM_PRICERANGE", "pricerg");
define("PARAM_ORDER", "order");


define("PARAM_CONTROLLER", "ctrl");
define("PARAM_ACTION", "act");

define("PARAM_SITE", "site");
define("PARAM_SITE_HOME", "home");
define("PARAM_SITE_PRODUCT", "product");
define("PARAM_SITE_TOUR", "tourism");
define("PARAM_SITE_DOMESTIC", "domestic");
define("PARAM_SITE_INTERNATIONAL", "international");
define("PARAM_SITE_SERVICE", "service");
define("PARAM_SITE_ARTICLE", "article");
define("PARAM_SITE_COLLECTION", "collection");
define("PARAM_SITE_MEDIAS", "medias");
define("PARAM_SITE_ACCOUNT", "account");
define("PARAM_SITE_SETTING", "setting");
define("PARAM_SITE_PROFILE", "profile");

define("SESSION_USERNAME", "username");
define("SESSION_ROLE", "role");
define("SESSION_LANGUAGE", "langauge");
define("SESSION_VIEW_COUNT", "view_count");


// definition reponse param
define("STATUS", "status");
define("MESSAGE", "message");
define("LINK", "link");
define("BACK", "back");




/** =================================== DEFINITION PARAM VALUE========================================= */
define("PVALUE_LAN_VN", "vn");
define("PVALUE_LAN_EN", "en");
define("PVALUE_LAN_FR", "kr");

define("PVALUE_CONTROLLER", "ctrl");
define("PVALUE_CONTROLLER_PAGE_WEBINFO", "page-webinfo");
define("PVALUE_CONTROLLER_PAGE_ORGANINFO", "page-organinfo");
define("PVALUE_CONTROLLER_PAGE_USERS", "page-users");
define("PVALUE_CONTROLLER_PAGE_ACCOUNT", "page-account");
define("PVALUE_CONTROLLER_PAGE_PAGEIMAGES", "page-images");
define("PVALUE_CONTROLLER_PAGE_PRODUCTIMAGES", "product-images");
define("PVALUE_CONTROLLER_PAGE_PAGEPOPUP", "page-popup");
define("PVALUE_CONTROLLER_PAGE_PAGESUPPORT", "page-support");
define("PVALUE_CONTROLLER_PAGE_VISITORS", "page-visitors");
define("PVALUE_CONTROLLER_VIEW_CATEGORIES", "view-categories");
define("PVALUE_CONTROLLER_VIEW_ARTICLES", "view-articles");
define("PVALUE_CONTROLLER_VIEW_SERVICE", "view-services");
define("PVALUE_CONTROLLER_VIEW_PRODUCTS", "view-products");
define("PVALUE_CONTROLLER_VIEW_TOURS", "view-tours");
define("PVALUE_CONTROLLER_VIEW_SERVICES", "view-services");
define("PVALUE_CONTROLLER_VIEW_SCENIC", "view-scenic");
define("PVALUE_CONTROLLER_VIEW_ALBUMS", "view-albums");
define("PVALUE_CONTROLLER_VIEW_FILES", "view-files");
define("PVALUE_CONTROLLER_VIEW_IMAGES", "view-images");
define("PVALUE_CONTROLLER_VIEW_VIDEOS", "view-videos");


define("PVALUE_ACTION_VIEW_TABLE", "view-table");
define("PVALUE_ACTION_VIEW_SORT", "view-sort");
define("PVALUE_ACTION_VIEW_FORM", "view-form");
define("PVALUE_ACTION_VIEW_GRID", "view-grid");

define("PVALUE_ACTION_SUBMIT_FORM", "submit-form");
define("PVALUE_ACTION_SUBMIT_SORT", "submit-sort");
define("PVALUE_ACTION_SUBMIT_DELETE_ONE", "submit-deleteone");
define("PVALUE_ACTION_SUBMIT_DELETE_MANY", "submit-deletemany");

define("PVALUE_ACTION_SUBMIT_CHECK_LOGTIN", "check-login");
define("PVALUE_ACTION_SUBMIT_LOGOUT", "user-logout");
define("PVALUE_ACTION_SUBMIT_USER_LOGTIN", "user-login");
define("PVALUE_ACTION_SUBMIT_USER_REGISTOR", "user-registor");
define("PVALUE_ACTION_SUBMIT_NEWS_REGISTOR", "new-registor");


define("PVALUE_ACTION_VIEW_FILEBROWSER", "view-file-browser");
define("PVALUE_ACTION_VIEW_PROFILE", "view-profile");
define("PVALUE_ACTION_VIEW_CHANGEPASSWORD", "view-changepassword");
define("PVALUE_ACTION_VIEW_ACTION", "view-action");
define("PVALUE_ACTION_VIEW_POPUP", "view-popup");

define("PVALUE_ACTION_SUBMIT_LOGIN", "submit-login");
define("PVALUE_ACTION_SUBMIT_RESETPASSWORD", "submit-resetpass");
define("PVALUE_ACTION_SUBMIT_PROFILE", "submit-profile");
define("PVALUE_ACTION_SUBMIT_CHANGEPASSWORD", "submit-changepassword");
define("PVALUE_ACTION_SUBMIT_POPUP", "submit-popup");


define("PARAM_ORDER_DEFAULT", "default");
define("PARAM_ORDER_PRICE_ASC", "priceasc");
define("PARAM_ORDER_PRICE_DESC", "pricedesc");

$orderParram = array(
                PARAM_ORDER_DEFAULT => array(PRODUCT_UPDATETIME => DESC),
                PARAM_ORDER_PRICE_ASC => array(PRODUCT_PRICE => ASC),
                PARAM_ORDER_PRICE_DESC => array(PRODUCT_PRICE => DESC),
                );
                
define("PARAM_PRICERANGE_01", "pr1");
define("PARAM_PRICERANGE_02", "pr2");
define("PARAM_PRICERANGE_03", "pr3");
define("PARAM_PRICERANGE_04", "pr4");
define("PARAM_PRICERANGE_05", "pr5");
define("PARAM_PRICERANGE_06", "pr6");
define("PARAM_PRICERANGE_07", "pr7");
define("PARAM_PRICERANGE_08", "pr8");

$priceRangeParram = array(
                PARAM_PRICERANGE_01 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(0, 1000000)),
                PARAM_PRICERANGE_02 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(1000000, 2000000)),
                PARAM_PRICERANGE_03 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(2000000, 3000000)),
                PARAM_PRICERANGE_04 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(3000000, 4000000)),
                PARAM_PRICERANGE_05 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(4000000, 5000000)),
                PARAM_PRICERANGE_06 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(5000000, 7000000)),
                PARAM_PRICERANGE_07 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(7000000, 10000000)),
                PARAM_PRICERANGE_08 => array(KEY => BETWEEN, COLUMN => PRODUCT_PRICE, VALUE => array(10000000, 1000000000)),
                );

?>